package com.tnovoselec.android.common.async.listener;

import java.util.concurrent.Future;

import com.tnovoselec.android.common.async.notif.Notifier;


public interface ResultListener<K, T> {

	/**
	 * A method to be called via a {@link Notifier} when an async operation has finished.
	 * 
	 * @param key The key the async operation was started with.
	 * @param result 
	 *        A future (which will have finished its calculation) holding the
	 *        result of the async operation.
	 */
	void onResult(K key, Future<T> result);
}
